package com.briup.ch07;

/**
 * @Author briup-adam
 * @Date 2023/10/10 上午8:12
 * @Description
 **/

public class TestAnimal {
    public static void main(String[] args) {

        //抽象类不能实例化
//        Animal a = new Animal();
//        a.eat();
//        a.sleep();
        System.out.println("----------------------------");
        Animal c = new Cat();
        c.eat();
        c.sleep();
        System.out.println("-------------------------------");
        Animal d = new Dog();
        d.eat();
        d.sleep();

    }
}
